package com.zmn.oms.persistence.interfaces.detail;

import com.zmn.oms.model.entity.detail.OrderDetail;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 类描述：订单详情
 *
 * @author liuying
 * @date 2018/11/06 11:53
 */
public interface OrderDetailDao {

    /**
     * 根据订单id查询工单扩展数据集合
     * @param orderIdList 订单id集合
     * @return 工单扩展数据集合
     */
    List<OrderDetail> listEsOrderDetailByOrderIdList(@Param("orderIdList") List<Long> orderIdList);

    OrderDetail findOrderDetailByKey(Long detailId);

    /**
     * 动态查询
     * @param queryStr
     * @param detailId
     * @return
     */
    OrderDetail findDynamicOrderDetailByKey(@Param("queryStr") String queryStr, @Param("detailId") Long detailId);

    int updateByKey(OrderDetail orderDetail);

    int insertOrderDetail(OrderDetail orderDetail);

    int updateAddressByKey(OrderDetail orderDetail);
}